<?php
/*
 * Created on Dec 2, 2010
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 
class TagDomain
{
	private $id;
	private $categoryId;
	
	private $name;
	private $nameId;
	
	private $alias;
	
	private $searchName;
	private $nameURL;
	
	private $descript;
	
	private $r_recommend;
	private $r_couponCount;
	
	private $c_fontSize;
	
	private $oAttributes;
	
	public function TagDomain()
	{
	}
	
	public function setId($id)
	{
		$this->id = $id;
	}
	
	public function getId()
	{
		return $this->id;
	}
	
	public function setCategoryId($categoryId)
	{
		$this->categoryId = $categoryId;
	}
	
	public function getCategoryId()
	{
		return $this->categoryId;
	}
	
	public function setName($name)
	{
		$this->name = $name;
	}
	
	public function getName()
	{
		return $this->name;
	}
	
	public function setNameId($nameId)
	{
		$this->nameId = $nameId;
	}
	
	public function getNameId()
	{
		return $this->nameId;
	}
	
	public function setAlias($alias)
	{
		$this->alias = $alias;
	}
	
	public function getAlias()
	{
		return $this->alias;
	}
	
	public function setSearchName($searchName)
	{
		$this->searchName = $searchName;
	}
	
	public function getSearchName()
	{
		return $this->searchName;
	}
	
	public function setNameURL($nameURL)
	{
		$this->nameURL = $nameURL;
	}
	
	public function getNameURL()
	{
		return $this->nameURL;
	}
	
	public function setDescript($descript)
	{
		$this->descript = $descript;
	}
	
	public function getDescript()
	{
		return $this->descript;
	}
	
	public function setRrecommend($r_recommend)
	{
		$this->r_recommend = $r_recommend;
	}
	
	public function getRrecommend()
	{
		return $this->r_recommend;
	}
	
	public function setRcouponCount($r_couponCount)
	{
		$this->r_couponCount = $r_couponCount;
	}
	
	public function getRcouponCount()
	{
		return $this->r_couponCount;
	}
	
	public function setCfontSize($c_fontSize)
	{
		$this->c_fontSize = $c_fontSize;
	}
	
	public function getCfontSize()
	{
		if(empty($this->c_fontSize) || $this->c_fontSize < 10)
			return 10;
			
		return $this->c_fontSize;
	}
	
	public function containAttribute($sourceId, $attributeId)
	{
		$key = $sourceId . '_' . $attributeId;
		
		return array_key_exists($key, $this->oAttributes);
	}
	
	public function setAttributes($oAttributes)
	{
		$this->oAttributes = $oAttributes;
	}
	
	public function getAttributes()
	{
		return $this->oAttributes;
	}
	
	public function getAttribute($sourceId, $attributeId)
	{
		$key = $sourceId . '_' . $attributeId;
		
		return $this->oAttributes[$key];
	}
}
?>
